package com.sky.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 订单明细
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class OrderDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    //名称
    private String name;

    //订单id
    private Long orderId;

    //菜品id
    private Long dishId;

    //套餐id
    private Long setmealId;

    //口味
    private String dishFlavor;

    //数量
    private Integer number;

    //金额
    private BigDecimal amount;

    //图片
    private String image;

    @Override
    public String toString() {
        return "orderDishes{" +
                "单价=" + amount +
                ", 口味='" + dishFlavor + '\'' +
                ", 菜品id=" + dishId +
                ", 图片='" + image + '\'' +
                ", 名称='" + name + '\'' +
                ", 数量=" + number +
                ", 套餐id=" + setmealId +
                '}';
    }
}
